package com.tucue.dao;

import com.tucue.model.AppPolicy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppPolicyMapper {
    int deleteByPrimaryKey(Integer apppolicyid);

    int insert(AppPolicy record);

    int insertSelective(AppPolicy record);

    AppPolicy selectByPrimaryKey(Integer apppolicyid);

    List<AppPolicy> selectAll();

    //<!--更新APP政策-->
    int updateAppPolicy(AppPolicy record);

    int updateByPrimaryKey(AppPolicy record);

    //单个删除政策
    int deleteAppPolicy(@Param(value = "id") int id, @Param(value = "visible") int visible);


    //批量删除政策
    int deleteAppPolicyBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "visible") int visible);

    //批量修改政策状态
    int updateAppPolicyStatusBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "status") int visible);
}